#ifndef SCRIPTHIGHLIGHTER_H
#define SCRIPTHIGHLIGHTER_H

#include <QObject>
#include <QTextDocument>
#include <QSyntaxHighlighter>

class ScriptHighlighter : public QSyntaxHighlighter
{
public:
  explicit ScriptHighlighter(QTextDocument *parent = nullptr);

private:
  QMap<QString, QTextCharFormat> formats;

  void highlightBlock(const QString &text) override;
};

#endif // SCRIPTHIGHLIGHTER_H
